import java.io.IOException;
import java.util.concurrent.ThreadPoolExecutor;

import util.ThreadPool;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
			
		ThreadPool pool = new ThreadPool(2, 50);
		pool.start();

	
		int i=0;
		while (i<160){
			i++;
			
		pool.execute(new Runnable() {
			@Override
			public void run() {
				//System.out.println("Je suis la job " + this.toString());
				try {
					Thread.sleep(20000);
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
	

			}
		});
		}
		

	}
}